#! /bin/bash
#-----------------------------
#auther__shaozhiqi
#-----------------------------

declare POST_URL=http://192.168.1.101:8040/user/all

echo curl -i -X POST -H "'Content-type':'application/json'"  '${POST_URL}' > temp.log
cat temp.log >> info.log
source temp.log > result

#biz_desc=$(cat result | sed 's/,/\n/g' | grep "bizDesc" | sed 's/:/\n/g' | sed '1d' | sed 's/}//g')
biz_desc=$(cat result | sed 's/,/\n/g' | grep "bizDesc" | sed 's/:/\n/g' | sed '1d' | sed 's/}//g'| sed 's/"//g')
echo $biz_desc
cat result >> info.log

#接下来biz_desc的值就可以作为调用第二个接口的参数了
#这里只是验证，没有按照规范写



